﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;

[CreateAssetMenu(fileName = "ObjectListScriptable", menuName = "Common/GameObjectList", order = 0)]
public class ScriptableObjectList : ScriptableObject
{
    public GameObject[] objectList;
    public GameObject GetByName(string name)
    {
        var obj = objectList.Where(d => d.name == name)?.FirstOrDefault();
        return obj;
    }

}

